<script setup>
//todo 绑定事件
let sayHello = (name) => {
  alert(`hello ${name}`);
};
let testChange = () => {
  console.log("testChange");
};
</script>

<template>
  <div>
    <button @click="sayHello('guoxu')">点击</button>
    <button @click="testChange">测试change</button>
    <input type="text" @click="testChange">

  </div>

</template>

<style scoped>

</style>